package org.kongqian.org.domain;

import java.math.BigDecimal;
import java.util.Date;
import org.kongqian.basic.domain.BaseDomain;

/**
 * <p>
 * 
 * </p>
 *
 * @author kq
 * @since 2022-11-01
 */
public class Department extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 部门编号
     */
    private String sn;
    /**
     * 部门名称
     */
    private String name;
    /**
     * 部门的上级分类层级id
     */
    private String dirPath;
    /**
     * 部门状态，0正常，1禁用
     */
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    private Long managerId;
    private Department department;
    /**
     * 上级部门
     */
    private Long parentId;
    private Long shopId;

    private Employee employee;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirPath() {
        return dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", sn='" + sn + '\'' +
                ", name='" + name + '\'' +
                ", dirPath='" + dirPath + '\'' +
                ", state=" + state +
                ", managerId=" + managerId +
                ", department=" + department +
                ", parentId=" + parentId +
                ", shopId=" + shopId +
                ", employee=" + employee +
                '}';
    }
}
